#!/usr/bin/env node
const shell = require('shelljs')

const webHookUrl = 'http://localhost:8080/job/game_videos_manager/build'
const apiToken = '11aa3769aa702948bb079cd99f0897a83e'

const SHELL = `curl -s -u gengwenhao:${apiToken} -X POST ${webHookUrl}`
shell.exec(SHELL, { async: true })
shell.echo('Jenkins 构建流水线已手动触发（代码仓库：https://gitee.com/gengwenhao/game_videos_manager）')
